<template>
  <div class="action-item">
    <div class="icon">
      <img src="../../assets/icon01.png" alt="" />
    </div>
    <div class="text">
      <div class="title">
        活动标题活动标题活动标题活动标题活活动标题活动标题活动标题活动标题活
      </div>
      <div class="time">10/11 10:00 - 11/11 00:00</div>
    </div>
    <div class="button">进行中</div>
  </div>
</template>

<script>
export default {
  name: "ActionItem1",
};
</script>

<style lang="scss" scoped>
.action-item {
  width: 587px;
  height: 98px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  box-sizing: border-box;
  margin-left: 26px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  &:hover {
    border: 1px solid #d52c1a;
  }
  .icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    background: linear-gradient(90deg, #d52c1a 0%, #fd6660 100%);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    img {
      width: 100%;
      height: 100%;
      overflow: hidden;
    }
  }
  .text {
    flex: 1;
    padding: 0 12px;
    width: 0;
    .title {
      height: 44px;
      font-size: 16px;
      font-weight: 400;
      color: #333333;
      line-height: 22px;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
    .time {
      font-size: 12px;
      font-weight: 400;
      color: #666666;
      line-height: 17px;
    }
  }
  .button {
    display: inline-flex;
    width: 120px;
    height: 44px;
    background: #d52c1a;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    line-height: 16px;
    justify-content: center;
    align-items: center;
  }
}
</style>
